home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 676 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.1 KB

  1. Path: rcp6.elan.af.mil!rscernix!danpop
  2. From: danpop@mail.cern.ch (Dan Pop)
  3. Newsgroups: comp.std.c
  4. Subject: Re: Close all opened files in C ?
  5. Date: 31 Mar 96 02:36:44 GMT
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <danpop.828239804@rscernix>
  8. References: <4jgifa$fjd@chaos.kulnet.kuleuven.ac.be> <828105458snz@wbriscoe.demon.co.uk> <4jhmg0$50n@solutions.solon.com>
  9. NNTP-Posting-Host: ues5.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11.  
  12. In <4jhmg0$50n@solutions.solon.com> seebs@solutions.solon.com (Peter Seebach) writes:
  13.  
  14. >In article <828105458snz@wbriscoe.demon.co.uk>,
  15. >walter briscoe  <walter@wbriscoe.demon.co.uk> wrote:
  16. >[re:]
  17. >>> NOW THIS IS MY QUESTION:
  18. >
  19. >>> How can I close all files that are opened ?
  20. >
  21. >>This thread is inappropriate in comp.std.c.
  22. >
  23. >>I suggest comp.lang.c.moderated may be appropriate.
  24. >
  25. >Probably not; I'd bounce it with "you can't in C, try a newsgroup
  26. >specific to your system."
  27.  
  28. And you'd be dead wrong.  exit() _will_ close all the files that are
  29. opened :-)
  30.  
  31. Dan
  32. --
  33. Dan Pop
  34. CERN, CN Division
  35. Email: danpop@mail.cern.ch 
  36. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  37.